package com.job.client.message.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConnectItem {
    @Field("user_id")
    private String userId;
    @Field("posts_id")
    private String postsId;
    @Field("number")
    private Integer number;
    @Field("message")
    private List<MessageItem> message;

    public ConnectItem(String userId, String postsId, List<MessageItem> message) {
        this.userId = userId;
        this.postsId = postsId;
        this.message = message;
    }
}
